package com.sxtbbs.util;

import java.sql.Connection;
import java.sql.SQLException;

import com.mchange.v2.c3p0.ComboPooledDataSource;

/**
 * 使用c3p0连接池获取连接
 * @author lovemanai
 *
 */
public class JdbcUtils {
	private static ComboPooledDataSource ds = null;
	static {
		ds = new ComboPooledDataSource();
	}
	public static Connection getConnection() throws SQLException {
		 return ds.getConnection();
	}
}
